<!--<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
	layout:decorator="base/mainlayout">-->
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<!--<%@ include file="/common/taglibs.jsp" %>-->
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- css -->
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
    <link rel="stylesheet" th:href="@{/css/dashboard.css}" />
    <link rel="stylesheet" th:href="@{/css/login.css}" />
    <!-- style sheet files -->
    <link rel="stylesheet" type="text/css" th:href="@{/css/newStyle.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/css/common.css}" />
    <!-- JavaScript files -->

    <script th:src="@{/js/plugins/jquery/jquery.min.js}"></script>
    <!--[if lt IE 9]>
    <script th:src="@{/js/plugins/bootstrap/html5shiv.min.js}"></script>
    <script th:src="@{/js/plugins/bootstrap/respond.min.js}"></script>
    <![endif]-->
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/json2.js}"></script>
    <script th:src="@{/js/plugins/datatables/dataTables.min.js}"></script>
    <script th:src="@{/js/plugins/datatables/dataTables.iplatform.js}"></script>
    <script th:src="@{/js/plugins/modalform/bootstrap.modalform.js}"></script>
    <script th:src="@{/js/plugins/modalform/bootstrap.modalform.js}"></script>
    <script th:src="@{/js/des.js}"></script>
    <script  type="text/javascript"  th:inline="javascript">
        /*<![CDATA[*/
        var username = '111111';
        // var username = /*[[${principal.username}]]*/;
        var encUserName = /*[[${encUserName}]]*/;
        $(function(){
            $("#encDesc").text(encode3des(username));
            $("#dencDesc").text(decode3des(encUserName));
            // $("#encDesc").text(CryptoJS.TripleDES.encrypt(username, key));
            // $("#dencDesc").text(CryptoJS.TripleDES.decrypt(encUserName, key));
        })

        /*]]>*/
    </script>
</head>

<body   style="background-color: #00C1DE">
<div class="container"  th:replace="base/common :: header('Index') "></div>
<div class="container">
    欢迎,<span id="" th:text="${principal.username}"></span>登录
    <input th:value="${access_token}" type="hidden">
    <br/>
    <span id="1" th:text="${encUserName}"></span>后台加密des  :
    <br/>
    <span id="encDesc" ></span>前台加密des :
    <br/>
    <span id="dencDesc"  ></span>前台解密des :
    <!--token,<span th:text="${access_token}"></span>登录-->
</div>
<div class="container" th:replace="base/common :: footer"></div>
</body>
</html>